package com.goldze.mvvmhabit.bean;

public class LoginBean {
    /**
     * success : true
     * message : success
     * code : 200
     * timestamp : 1618745031289
     * result : {"user":{"id":"1383742581938196480","createBy":null,"createTime":"2021-04-18 19:21:54","updateBy":null,"updateTime":null,"delFlag":0,"username":"22222","password":"22222","name":"安迪","sex":"男","age":"21","idCard":null,"address":null,"mobile":"17839577321","number":"499786567676688","clazzId":null,"clazzName":null,"school":"浙江大学","reward":null,"photo":null},"token":"e3dc2a452ed646fdb99c687ef89390cc"}
     */

    private boolean success;
    private String message;
    private int code;
    private long timestamp;
    private ResultBean result;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * user : {"id":"1383742581938196480","createBy":null,"createTime":"2021-04-18 19:21:54","updateBy":null,"updateTime":null,"delFlag":0,"username":"22222","password":"22222","name":"安迪","sex":"男","age":"21","idCard":null,"address":null,"mobile":"17839577321","number":"499786567676688","clazzId":null,"clazzName":null,"school":"浙江大学","reward":null,"photo":null}
         * token : e3dc2a452ed646fdb99c687ef89390cc
         */

        private UserBean user;
        private String token;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class UserBean {
            /**
             * id : 1383742581938196480
             * createBy : null
             * createTime : 2021-04-18 19:21:54
             * updateBy : null
             * updateTime : null
             * delFlag : 0
             * username : 22222
             * password : 22222
             * name : 安迪
             * sex : 男
             * age : 21
             * idCard : null
             * address : null
             * mobile : 17839577321
             * number : 499786567676688
             * clazzId : null
             * clazzName : null
             * school : 浙江大学
             * reward : null
             * photo : null
             */

            private String id;
            private String createBy;
            private String createTime;
            private String updateBy;
            private String updateTime;
            private int delFlag;
            private String username;
            private String password;
            private String name;
            private String sex;
            private String age;
            private String idCard;
            private String address;
            private String mobile;
            private String number;
            private String clazzId;
            private String clazzName;
            private String school;
            private String reward;
            private String photo;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public int getDelFlag() {
                return delFlag;
            }

            public void setDelFlag(int delFlag) {
                this.delFlag = delFlag;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getAge() {
                return age;
            }

            public void setAge(String age) {
                this.age = age;
            }

            public String getIdCard() {
                return idCard;
            }

            public void setIdCard(String idCard) {
                this.idCard = idCard;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getClazzId() {
                return clazzId;
            }

            public void setClazzId(String clazzId) {
                this.clazzId = clazzId;
            }

            public String getClazzName() {
                return clazzName;
            }

            public void setClazzName(String clazzName) {
                this.clazzName = clazzName;
            }

            public String getSchool() {
                return school;
            }

            public void setSchool(String school) {
                this.school = school;
            }

            public String getReward() {
                return reward;
            }

            public void setReward(String reward) {
                this.reward = reward;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }
        }
    }
}
